package com.example;

import com.example.common.constant.SysConst;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = {SysConst.BASE_COMPONENT_SCAN_PATH})
@ServletComponentScan(basePackages = SysConst.BASE_COMPONENT_SCAN_PATH)
@MapperScan(basePackages = {SysConst.BASE_COMPONENT_SCAN_PATH + ".mapper"})
public class OneFileServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(OneFileServerApplication.class, args);
    }

}
